<tc_include file="Public:header" />
 <section class="index-course-list">
		<div class="user-center-header" style="background:#ccc" >
		<div class="container clearfix">
			<div class="user-avatar">
				<div class="avatar-wrap" style="width:150px;height:150px;overflow:hidden;">
				    <if condition="empty($teacher['avatar'])"> 
						<img src="__PUBLIC__/simplebootx/public/images/093958e59110293063.jpg" class="img-circle" style="max-width:150px;;width:150px;"/>
					<else /> 
						<img src="{:sp_get_user_avatar_url($teacher['avatar'])}" class="img-circle" style="max-width:150px;;width:150px;"/> 
					</if>
				</div>
				<div class="name">
					{$teacher['user_nicename']}
				</div>
				<div class="position">
					<span class="mrm">{$teacher['zhicheng']|default="该教师没有设置！"}</span>
                </div>
				<!-- <div class="mates">
					<span class="mrm">0</span>粉丝<span class="mlm mrm">｜</span><span class="mrm">0</span>关注
				</div>
				<div class="actions">
					<a class="btn btn-primary follow-btn mrl" href="javascript:;" data-url="/user/6/follow" >关注</a>
					<a class="btn btn-default unfollow-btn mrl" href="javascript:;" data-url="/user/6/unfollow"  style="display:none;" >已关注</a>
					<button class="btn btn-ghost-white" data-toggle="modal" data-backdrop="static" data-target="#modal" data-url="/message/create/6">私信</button>
				</div> -->
			</div>
			<div class="user-about hidden-sm hidden-xs">
				<div class="user-about-content">
					{$teacher['signature']|default="该教师没有设置！"}     
				</div>
			</div>
		</div>
		<div class="mask"></div>
	</div>

    <div id="content-container" class="container">
        <ul class="nav nav-tabs clearfix">
			<li ><a href="{:u('Teacher/Teacher/about',array('id'=>$teacher['id']))}">个人介绍</a></li>
  		    <li class="active"><a href="{:u('Teacher/Teacher/teach',array('id'=>$teacher['id']))}">在教课程</a></li>
		</ul>
		<div class="editor-text">
			<div class="course-list">
				<div class="row">
                    <volist name="course" id="vo"> 
						<div class="col-lg-3 col-md-4 col-xs-6">
							<div class="course-item">
								<div class="course-img">
									<a href="{:u('course/Course/courseinfo',array('id'=>$vo['id']))}">
										<if condition="empty($vo['cs_picture'])">
										   <img class="transform img-responsive " src="__PUBLIC__/images/course.png">
										 <else /> 
										   <img class="transform img-responsive "  src="{$vo['cs_picture']}">
										 </if> 
										<if condition="$vo['course_type']=='live'">
											<span class="tags">
												<span class="tag-live"></span>
											</span>	
										<else /> 
											<if condition="$vo['isover']==0">
												<span class="tags"><span class="tag-serialing"></span></span>
											<else />
											</if>
										</if>
										<div class="course-show clearfix">
											<if condition="empty($vo['tpic'])">
												<img src="__PUBLIC__/simplebootx/public/images/093958e59110293063.jpg" class="img-circle pull-left">
											<else /> 
												<img src="{:sp_get_user_avatar_url($vo['tpic'])}?t={:time()}" class="img-circle  pull-left" /> 
											</if> 
											<div class="pull-left">
												<h4>{$vo['teacher']}</h4>
												<p>{$vo['cs_name']}</p>
											</div>
										</div>
									</a>
								</div>
								<div class="course-info">
									<div class="title"><a href="{:u('course/Course/courseinfo',array('id'=>$vo['id']))}">{$vo['cs_name']}</a></div>
									<div class="metas clearfix">
										<span class="num"><i class="es-icon es-icon-people"></i>{$vo['xueyuannum']}人在学</span>
										<span class="comment"><i class="es-icon es-icon-textsms"></i>{$vo['pinglununm']}</span>
										 <if condition="!$vo['cs_price']==0">
											 <span class="price price-num">¥{$vo['cs_price']}.00</span> 
										 <else /> 
											 <span class="price price-num text-success">免费</span>
										 </if>		                  
									</div>
								</div>
							</div>
						</div> 
			        </volist>	
				</div>          
            </div>
		</div>
    </div>
</section>
<tc_include file="Public:scripts" />          
<tc_include file="Public:footer" />